import { createRouter, createWebHashHistory } from "vue-router";

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
     {
      path: "/",
      redirect: "/baseHome",
    },
    {
      path: "/",
      name: "home",
      component: () => import("@/views/index.vue"),
      children: [
        {
          path: "/baseHome",
          name: "baseHome",
          component: () => import("@/views/base/baseHome.vue"),
        },
        {
          path: "/dapeng",
          name: "dapeng",
          component: () => import("@/views/dapeng/dapeng.vue"),
        },
        {
          path: "/env",
          name: "env",
          component: () => import("@/views/env/env.vue"),
        },
        {
          path: "/land",
          name: "land",
          component: () => import("@/views/base/land.vue"),
        },
      ],
    },

    {
      path: "/test",
      name: "test",
      component: import("@/views/test.vue"),
    },
  ],
});

export default router;
